package com.you.tomcat.bio.servlet;

import com.you.tomcat.bio.http.HttpRequest;
import com.you.tomcat.bio.http.HttpResponse;
import com.you.tomcat.bio.http.HttpServlet;

/**
 * second servlet
 */
public class SecondServlet extends HttpServlet {

    @Override
    public void doGet(HttpRequest request, HttpResponse response) throws Exception {
        doPost(request, response);
    }

    @Override
    public void doPost(HttpRequest request, HttpResponse response) throws Exception {
        System.out.println("--------second servlet------");
        response.write("This is second servlet!");
    }
}
